////////////////////////////////////////////
var tradArray =[{name:'名 称 ',id:'tra_name'},{name:'寒热',id:'tra_contain'}];
var tradUrl1 = basePath+'/tra/traditionalName.jsp'
var tradUrl02 = basePath+'/tra/hc.jsp';

var traditionalTab = new Ext.TabPanel({
        renderTo: 'traditional_tab',
        activeTab: traActiveTab,
        plain:true,
        defaults:{autoScroll: true,autoHeight: true},
        items:[
            {
                title: tradArray[0].name,
                id: tradArray[0].id,
                el:'herb_name_div',
				autoLoad: {url: tradUrl1, params: {tradName:tra_searchMess},scripts:true},
				autoScroll: true
				
            },{
                title: tradArray[1].name,
                id: tradArray[1].id,
                el:'herb_hc_div',
				autoLoad: {url: tradUrl02, params: 'foo=bar&wtf=1',scripts:true},
				autoScroll: true
            }
        ]
    });
    
    //////选择一个中药和选择多味中药进不同界面///////
     function selectTraRecord(r){
		var size = r.length;
	  if(size == 1){
	  	comparisonPreOne(basePath+'/tra/traContentOne.jsp',{herId:r[0].data.id});
	  }else{
	  	var ids = new Array(); 
	  	for(var i=0 ; i < size ; i++ )
	  		ids.push(r[i].data.id);
	  	comparisonPreMost(basePath+'/tra/traContentMost.jsp',{herId:ids});
	  }
	}